<html>
<body>

<?php
$d=date("D");
if ($d=="Fri") echo "Have a nice weekend! <br />";
?>


<?php
$d=date("D");
if ($d=="Fri")
  echo "Have a nice weekend! <br />";
else
  echo "Have a nice day! <br />";
?>




<?php
$d=date("D");
if ($d=="Fri")
  echo "Have a nice weekend! <br />";
elseif ($d=="Sun")
  echo "Have a nice Sunday! <br />";
else
  echo "Have a nice day! <br />";
?>




<?php
$x=1;
switch ($x)
{
case 1:
  echo "Number 1 <br />";
  break;
case 2:
  echo "Number 2 <br />";
  break;
case 3:
  echo "Number 3 <br />";
  break;
default:
  echo "No number between 1 and 3 <br />";
}
?>

</body>
</html>